package com.hdax.dm.Controller.list;

import com.hdax.dm.dto.list.guesslikeDto;
import com.hdax.dm.service.guesslikeService;
import com.hdax.dm.utils.response.CommonResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/item")
public class guesslikeController {

    @Autowired
    private guesslikeService guesslikeService;

    /*查询界面的猜你喜欢接口*/
    @PostMapping("list/guesslike")
    public CommonResponse<List<guesslikeDto>> guesslike(@RequestBody Map<String,Integer> params){
        return guesslikeService.guesslike(params);
    }
}
